var is_more = !1;

Page({
    data: {
        show: !1,
        page: 1,
        list_log: []
    },
    onLoad: function(t) {
        getApp().page.onLoad(this, t);
        if (this.data.store.is_shenhe == 0) {
          wx.setNavigationBarTitle({
            title: '额外收入'
          })
        }
        this.getData()
    },
    getData: function() {
        var e = this;
        getApp().core.showLoading({
            title: "加载中"
        }), getApp().request({
            url: getApp().api.subsidy.get_list,
            data: {
                page: e.data.page
            },
            success: function(t) {
                console.log(e.data.list_log)
                var list = e.data.list_log.concat(t.data.list)
                console.log('list', list)
                e.setData({
                    list_log: list,
                    page: ++e.data.page
                }), getApp().core.hideLoading(), is_more = !1;
            }
        });
    },
    onReady: function() {
        getApp().page.onReady(this);
    },
    onShow: function() {
        getApp().page.onShow(this);
        var e = this;
        getApp().core.showLoading({
            title: "加载中"
        });
        var a = getApp().core.getStorageSync(getApp().const.USER_INFO);
        getApp().request({
            url: getApp().api.subsidy.get_index,
            success: function(t) {
                a.subsidy_price = t.data.money, getApp().core.setStorageSync(getApp().const.USER_INFO, a), 
                e.setData({
                    user_info: a,
                    list: t.data.list,
                    setting: t.data.setting
                }), getApp().core.hideLoading();
            }
        });
    },
    onReachBottom() {
        this.getData()
    }
});